<?php

declare(strict_types=1);

namespace App\Service\Business;

/**
 * 语言-业务类
 */
class LanguageBusiness extends BaseBusiness
{
        /**
         * 查询
         * @return array
         */
        public function query(): array
        {
                $arrModules = $this->request->input('modules', []);
                $arrResult = [];
                foreach ($arrModules as $v) {
                        $arrResult[$v] = trans($v);
                }
                return businessSuccess($arrResult);
        }
}